package com.ctsi.ssdc.service;


import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallCart;
import com.ctsi.ssdc.domain.LitemallCartExample;
import com.ctsi.ssdc.service.StrengthenBaseService;

import java.util.List;

/**
 * Service Interface for managing LitemallCart.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallCartService 
	extends StrengthenBaseService<LitemallCart, Integer, LitemallCartExample>{


    /**
    * GET  /litemallCarts : get the litemallCarts firstStringBaseColumn.
    */
    PageResult<LitemallCart> findFirstStringColumn(String goodsSn ,Pageable pageable);

    void deleteById(Integer id);

    List<LitemallCart> queryByUid(Integer userId);

    LitemallCart queryExist(Integer goodsId, Integer productId, Integer userId);

    void add(LitemallCart cart);

    int updateById(LitemallCart existCart);

    LitemallCart findById(Integer userId, Integer id);

    int updateCheck(Integer userId, List<Integer> productIds, Boolean isChecked);

    int delete(List<Integer> productIdList, int userId);

    List<LitemallCart> queryByUidAndChecked(Integer userId);

    LitemallCart findById(Integer cartId);

    void clearGoods(Integer userId);
}
